package util;

import java.io.*;

public class Debug {
    public static FileWriter outFile = null;
    public static PrintWriter out = null;
     
    
    public static void log(String Msg){
      try { 
        if(outFile == null) {
          outFile = new FileWriter(System.getProperty("dbPath") + "debug.log");
          out = new PrintWriter(outFile);
        }
        out.println(Msg);
        out.flush();
      }
      catch ( Exception e ){}
    }
     
    public static void loge(Exception e) {
      try {  
        out.println(e);
        out.flush();
      } 
      catch ( Exception e2 ){
    	  
      }
    }

}
